﻿using System;

namespace HlELock.Domain.Entities
{
    /// <summary>
    /// 客房
    /// </summary>
    public class Room : EntityBase
    {
        /// <summary>
        /// 楼栋名称
        /// </summary>
        public string BuldingName { get; set; }

        /// <summary>
        /// 楼栋
        /// </summary>
        public int BuildingNumber { get; set; }

        /// <summary>
        /// 楼层
        /// </summary>
        public int FloorNumber { get; set; }

        /// <summary>
        /// 房间号
        /// </summary>
        public string RoomNumber { get; set; }

        /// <summary>
        /// 房间类型
        /// </summary>
        public string RoomType { get; set; }

        /// <summary>
        /// 是否已入住
        /// </summary>
        public bool IsOccupancies { get; set; }

        /// <summary>
        /// 特色类型
        /// </summary>
        public string Feature { get; set; }

        public override string ToString()
        {
            var str = "";
            if (BuildingNumber > 0)
            {
                str += BuildingNumber + "栋";
            }
            if (FloorNumber > 0)
            {
                str += FloorNumber + "层";
            }
            str += RoomNumber;
            return str;
        }
    }
}
